package cn.nexd.app.collector.presenter.building;


import java.util.List;
import java.util.Map;

import cn.nexd.app.collector.activity.BaseView;
import cn.nexd.app.collector.model.Mall;
import cn.nexd.app.collector.presenter.BasePresenter;


/**
 * Created by xun on 2016/8/9.
 */
public class LoadBuildingContract {
    public interface View extends BaseView<Presenter> {
        /**
         *
         */
        void loading();

        /**
         * 载入数据成功
         */
        void loadDataSuccess(List<Map<String, Object>> cityList, List<Mall> malls);

        /**
         * 载入数据失败
         */
        void loadDataFail();

        /**
         * 查询数据成功
         *
         * @param cityList
         * @param malls
         */
        void querySuccess(List<Map<String, Object>> cityList, List<Mall> malls);
    }

    public interface Presenter extends BasePresenter {
        void loadData();

        List<Mall> loadMalls(String cityName);
    }
}
